# !/usr/bin/python
# _*_ coding: utf-8 _*_
# @Time : 2021/5/25 2:27 下午
# @Author : liujun
# @File : sys_user.py
# @desc : 系统用户
from typing import Optional
from pydantic import BaseModel, Field


class SysUserAdd(BaseModel):
    login_name: str = Field(description='登录名', max_length=20)
    login_pwd: str = Field(description='登录密码', max_length=20)
    phone: str = Field(description='登录密码', max_length=20)
    seq: int = Field(description='顺序号', gt=1, le=999)
    remark: Optional[str] = Field(None, description='备注', max_length=128)
    state: bool = Field(True, description='状态：1、启用。0、禁用。')


class SysUserUpd(BaseModel):
    name: str = Field(description='名称', max_length=20)
    seq: int = Field(description='顺序号', gt=1, le=999)
    remark: Optional[str] = Field(None, description='备注', max_length=128)
    state: bool = Field(True, description='状态：1、启用。0、禁用。')




